#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include<string>
#include "combine.hpp"

#if 0
int main(){
      int x=open("ff",O_WRONLY);
       if (x < 0)
    {
        std::cerr << "open fifo error" << std::endl;
        return 2;
    }
     while(1){
          std::string mess;
         std:: getline(std::cin,mess);
        int n= write(x,mess.c_str(),mess.size());
      if(n>0) {}
     }
     close(x);
}
#endif
int main(){
  oppipe op(".","ff");
  op.openw();
  op.pwrite();
}
